package com.lantosec.hmrp.core.kit;


/**
 * 返回定义
 *
 * @author 杨成宇
 * @version 1.0
 */
public enum ResultEnum {
    SUCCESS("000000", "操作成功！"),
    ADD_SUCCESS("000000", "新增成功！"),
    UPDATE_SUCCESS("000000", "修改成功！"),
    DELETE_SUCCESS("000000", "删除成功！"),
    SELECT_SUCCESS("000000", "查询成功！"),
    FAILURE("100000", "操作失败！请稍后再试或与系统管理员联系。"),
    ADD_FAILURE("100001", "新增失败！请稍后再试或与系统管理员联系。"),
    UPDATE_FAILURE("100002", "修改失败！请稍后再试或与系统管理员联系。"),
    DELETE_FAILURE("100003", "删除失败！请稍后再试或与系统管理员联系。"),
    SELECT_FAILURE("100004", "查询失败！请稍后再试或与系统管理员联系。"),
    IDENTIFY_FAILURE("100005", "尚未登录，请先登录"),

    EXCEPTION("900000", "系统异常，请稍后再试.");



    public String code;
    public String msg;

    ResultEnum(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
